package ru.myrtle.jst.ast;

/**
 * Define a Java Scriptlet Element in the AST.
 */
public class Scriptlet extends Element {

    private final String content;

    public Scriptlet(Unit unit, int line, int column, String content) {
        super(
                unit, line, column
        );
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    @Override
    public <ContextType> void accept(Visitor<ContextType> visitor, ContextType context) {
        visitor.visit(this, context);
    }
}
